package com.trkj.dao.jpa;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.trkj.pojos.LmbMaterialAcceptance;

public interface LmbMaterialAcceptanceDAO extends CrudRepository<LmbMaterialAcceptance, String> {
	@Query("select max(m.matId) from LmbMaterialAcceptance m where m.matId like ?1%")
    public String findMaxID(String a);
	
	@Query("select m from LmbMaterialAcceptance m where m.matCpId =?1")
    public LmbMaterialAcceptance findAcceptance(String a);
		
}
